package com.burstly.lib.util;

import android.util.DisplayMetrics;

public final class DensityDpiProvider
{
  public static final String HIGH = "High";
  public static final String LOW = "Low";
  public static final String MEDIUM = "Medium";
  public static final String XHIGH = "XHigh";
  private static String sDefaultDensityValue = "Low";

  public static String getDisplayDensity(DisplayMetrics paramDisplayMetrics)
  {
    switch (paramDisplayMetrics.densityDpi)
    {
    default:
      return sDefaultDensityValue;
    case 120:
      return "Low";
    case 160:
      return "Medium";
    case 240:
      return "High";
    case 320:
    }
    return "XHigh";
  }

  public static void setDefaultDensityValue(String paramString)
  {
    if ((paramString.equals("Low")) || (paramString.equals("Medium")) || (paramString.equals("High")) || (paramString.equals("XHigh")))
      sDefaultDensityValue = paramString;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.util.DensityDpiProvider
 * JD-Core Version:    0.6.2
 */